<?php

namespace Modules\Edu\Http\Controllers\Member;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;

class LiveController extends \App\Http\Controllers\Common\LiveController
{
    /**
     * Display a listing of the resource.
     * @return Response
     */
    public function index()
    {
        if (!access('live',false)) {
            return back()->with('danger','请联系管理员开通');
        }
        $user = user();
        $config = user()->live ? user()->live->config : [];

        return view('edu::member.live', compact('user', 'config'));
    }


}
